﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NerdDinner.Web.Models.Data;

namespace NerdDinner.Web.Models.Repository
{
    public interface IDinnerRepository
    {
        // Query Methods
        //IEnumerable<Dinner> FindAllDinners();
        IQueryable<Dinner> FindAllDinners();
        IQueryable<Dinner> FindByLocation( float latitude, float longitude, int distance );
        IQueryable<Dinner> FindUpcomingDinners();
        Dinner GetDinner( int id );

        // Insert/Delete
        void Add( Dinner dinner );
        void Delete( Dinner dinner );

        // Persistence
        void Save();
    }
}
